﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PlanningGIS.Product
{
    /// <summary>
    /// 开发者属性类
    /// </summary>
    [AttributeUsage(AttributeTargets.All, Inherited =true, AllowMultiple = true)]
    public class DeveloperAttribute:System.Attribute
    {
        /// <summary>
        /// 开发者姓名
        /// </summary>
        private string name;

        /// <summary>
        /// 开发者级别
        /// </summary>
        private string level;

        /// <summary>
        /// 开发者所在部门
        /// </summary>
        private string department;

        /// <summary>
        /// 开发日期
        /// </summary>
        private string developTime;


        public DeveloperAttribute(string pName, string pDevelopTime)
        {
            this.name = pName;
            this.developTime = pDevelopTime;
        }

        public DeveloperAttribute(string pName, string pDevelopTime,string pDepartment )
        {
            this.name = pName;
            this.department = pDepartment;
            this.developTime = pDevelopTime;
        }

        public DeveloperAttribute(string pName, string pDevelopTime,string pDepartment, string pLevel)
        {
            this.name = pName;
            this.department = pDepartment;
            this.level = pLevel;
            this.developTime = pDevelopTime;
        }

        public virtual string Name
        {
            get { return name; }
        }

        public virtual string Level
        {
            get { return level; }
        }

        public virtual string Department
        {
            get { return department; }
        }

        public virtual string DevelopTime
        {
            get { return developTime; }
        }

    }
}
